<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="玖忆;文鹤;博客">
    
    <meta name="author" content="meteor">
    <!-- preconnect -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    
    <!--- Seo Part-->
    
    <link rel="canonical" href="https://wait-you.github.io/"/>
    <meta name="robots" content="index,follow">
    <meta name="googlebot" content="index,follow">
    <meta name="revisit-after" content="1 days">
    
        <meta name="description" content="我本微末凡尘、可也心向天空">
<meta property="og:type" content="website">
<meta property="og:title" content="玖忆">
<meta property="og:url" content="https://wait-you.github.io/index.html">
<meta property="og:site_name" content="玖忆">
<meta property="og:description" content="我本微末凡尘、可也心向天空">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="meteor">
<meta property="article:tag" content="玖忆;文鹤;博客">
<meta name="twitter:card" content="summary">
    
    
    <!--- Icon Part-->
    <link rel="icon" type="image/png" href="/images/wenhe.png" sizes="192x192">
    <link rel="apple-touch-icon" sizes="180x180" href="/images/wenhe.png">
    <meta name="theme-color" content="#f1404b">
    <link rel="shortcut icon" href="/images/wenhe.png">
    <!--- Page Info-->
    
    <title>
        
        玖忆
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    
<link rel="stylesheet" href="/assets/fonts.css">

    <!--- Font Part-->
    
    
    
    

    <!--- Inject Part-->
    
    <script id="hexo-configurations">
    let Global = window.Global || {};
    Global.hexo_config = {"hostname":"wait-you.github.io","root":"/","language":"zh-CN"};
    Global.theme_config = {"articles":{"style":{"font_size":"16px","line_height":1.5,"image_border_radius":"14px","image_alignment":"center","image_caption":false,"link_icon":true},"word_count":{"enable":true,"count":true,"min2read":true},"author_label":{"enable":true,"auto":false,"list":[]},"code_block":{"copy":true,"style":"mac","font":{"enable":false,"family":null,"url":null}},"toc":{"enable":true,"max_depth":3,"number":false,"expand":true,"init_open":true},"copyright":true,"lazyload":true,"recommendation":{"enable":false,"title":"推荐阅读","limit":3,"placeholder":"http://tuchuang.wenhe9.cn/default-bg.jpg","skip_dirs":[]}},"colors":{"primary":"#f1404b","secondary":null},"global":{"fonts":{"chinese":{"enable":false,"family":null,"url":null},"english":{"enable":false,"family":null,"url":null}},"content_max_width":"1000px","sidebar_width":"210px","hover":{"shadow":true,"scale":false},"scroll_progress":{"bar":true,"percentage":true},"busuanzi_counter":{"enable":true,"site_pv":true,"site_uv":true,"post_pv":true},"pjax":true,"open_graph":true,"google_analytics":{"enable":false,"id":null}},"home_banner":{"enable":true,"style":"static","image":{"light":"http://tuchuang.wenhe9.cn/default-bg.jpg","dark":"http://tuchuang.wenhe9.cn/default-bg.jpg"},"title":"玖忆","subtitle":{"text":["我本微末凡尘、可也心向天空"],"hitokoto":{"enable":false,"api":"https://v1.hitokoto.cn"},"typing_speed":100,"backing_speed":80,"starting_delay":500,"backing_delay":1500,"loop":true,"smart_backspace":true},"text_color":{"light":"#fff","dark":"#d1d1b6"},"text_style":{"title_size":"2.8rem","subtitle_size":"1.5rem","line_height":1.2},"custom_font":{"enable":false,"family":null,"url":null},"social_links":{"enable":true,"links":{"github":"https://gitee.com/du-jinliang","instagram":null,"zhihu":null,"twitter":null,"email":"dujinliang9@163.com"}}},"plugins":{"feed":{"enable":false},"aplayer":{"enable":false,"type":"fixed","audios":[{"name":null,"artist":null,"url":null,"cover":null}]},"mermaid":{"enable":false,"version":"9.3.0"}},"version":"2.1.4","navbar":{"auto_hide":true,"color":{"left":"#f78736","right":"#367df7","transparency":35},"links":{"Home":{"path":"/","icon":"fa-regular fa-house"}},"search":{"enable":false,"preload":true}},"page_templates":{"friends_column":2,"tags_style":"blur"},"home":{"sidebar":{"enable":true,"position":"left","first_item":"menu","announcement":null,"links":null},"article_date_format":"auto","categories":{"enable":true,"limit":3},"tags":{"enable":true,"limit":3}}};
    Global.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 个月前","year":"%s 年前"};
    Global.data_config = {"masonry":false};
  </script>
    
    <!--- Fontawesome Part-->
    
<link rel="stylesheet" href="/fontawesome/fontawesome.min.css">

    
<link rel="stylesheet" href="/fontawesome/brands.min.css">

    
<link rel="stylesheet" href="/fontawesome/solid.min.css">

    
<link rel="stylesheet" href="/fontawesome/regular.min.css">

    
    
    
    
<meta name="generator" content="Hexo 6.3.0"></head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
        <span class="pjax-progress-bar"></span>
        <span class="pjax-progress-icon">
            <i class="fa-solid fa-circle-notch fa-spin"></i>
        </span>
    
</div>


<main class="page-container">

    
        

<div class="home-banner-container flex-center">
    <div class="content flex-center">
        <div class="description fade-in-down-animation" >
          玖忆 
          
            <p><i id="subtitle"></i></p>
          
        </div>
        
            <div class="social-contacts fade-in-down-animation">
                
                    
                        
                            <span class="social-contact-item github">
                                <a target="_blank" href="https://gitee.com/du-jinliang">
                                    <i class="fa-brands fa-github"></i>
                                </a>
                            </span>
                        
                    
                
                    
                
                    
                
                    
                
                    
                        
                            <span class="social-contact-item email">
                                <a href="mailto:dujinliang9@163.com">
                                    <i class="fa-solid fa-envelope"></i>
                                </a>
                            </span>
                        
                    
                
            </div>
        
    </div>
</div>



    

    <div class="main-content-container">

        <div class="main-content-header">
            <header class="navbar-container">
    
    <div class="navbar-content has-home-banner">
        <div class="left">
            
            <a class="logo-title" href="/">
                <h1>
                玖忆
                </h1>
            </a>
        </div>

        <div class="right">
            <!-- PC -->
            <div class="desktop">
                <ul class="navbar-list">
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="active" 
                                    href="/"  >
                                    
                                        
                                            <i class="fa-regular fa-house"></i>
                                        
                                        首页
                                    
                                </a>
                                <!-- Submenu -->
                                
                            </li>
                    
                    
                </ul>
            </div>
            <!-- Mobile -->
            <div class="mobile">
                
                <div class="icon-item navbar-bar">
                    <div class="navbar-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <!-- Mobile drawer -->
    <div class="navbar-drawer">
        <ul class="drawer-navbar-list">
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="active" 
                        href="/"  >
                             
                                
                                    <i class="fa-regular fa-house"></i>
                                
                                首页
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                    
            

        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="main-content-body">

            
                <div class="home-sidebar-container fade-in-down-animation">
    <div class="sticky-container">
        
            
            <div class="sidebar-content" >
                <div class="avatar">
                    <img src="/images/wenhe.png">
                </div>
                <div class="author">
                    <div class="name">meteor</div>
                    
                        <div class="label">Lv3</div>
                    
                </div>
                <div class="statistics">
                    <a class="item" href="/tags">
                        <div class="number">29</div>
                        <div class="label">标签</div>
                    </a>
                    <a class="item" href="/categories">
                        <div class="number">19</div>
                        <div class="label">分类</div>
                    </a>
                    <a class="item" href="/archives">
                        <div class="number">29</div>
                        <div class="label">文章</div>
                    </a>
                </div>
            </div>
        

    </div>
</div>

            

            <div class="main-content">

                
                    <div class="home-content-container fade-in-down-animation">
    <ul class="home-article-list">
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/09/14/Gradle%E4%BE%9D%E8%B5%96%E7%AE%A1%E7%90%86%E7%9A%84%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F/">
                        Gradle依赖管理的三种方式
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # Gradle 依赖管理的三种方式
# ext
在项目的 build.gradle  文件中使用 ext  块来定义全局变量，然后在依赖中引用这些变量。这是一种简单的方式来管理依赖版本。
123456789101112// 在build.gradl...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Thu Sep 14 2023 00:27:15 GMT-0800">
                
                    2023-09-14
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/Gradle/">Gradle</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/Gradle/">Gradle</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/09/14/Gradle%E4%BE%9D%E8%B5%96%E7%AE%A1%E7%90%86%E7%9A%84%E4%B8%89%E7%A7%8D%E6%96%B9%E5%BC%8F/">阅读全文<span class="seo-reader-text">Gradle依赖管理的三种方式</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/09/02/MVCC%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86/">
                        MVCC底层原理
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # MVCC 底层原理
# 概念
MVCC 是多版本并发控制
它是由两部分组成的

undo log 版本链

当事务中有操作对数据进行修改的时候，就会将原数据存放到 undo log 中，用于回滚或查询
其中需要注意的是数据库中的数据表的每一条数据...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Fri Sep 01 2023 15:29:21 GMT-0800">
                
                    2023-09-01
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/tags/mysql/">mysql</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/09/02/MVCC%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86/">阅读全文<span class="seo-reader-text">MVCC底层原理</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/09/02/%E5%B8%83%E9%9A%86%E8%BF%87%E6%BB%A4%E5%99%A8/">
                        布隆过滤器
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 布隆过滤器
# 概念
一个很长的二进制向量，一个二进制数组，由 0 和 1 组成，主要作用是判断一个数据存不存在这个于这个数组中，如果不存在就是 0，如果存在的话就是 1，使用 0 和 1 的二进制存储来表示存在的关系。

# 原理

# 存入过...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Fri Sep 01 2023 10:14:35 GMT-0800">
                
                    2023-09-01
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/tags/redis/">redis</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/09/02/%E5%B8%83%E9%9A%86%E8%BF%87%E6%BB%A4%E5%99%A8/">阅读全文<span class="seo-reader-text">布隆过滤器</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/08/06/HashSet%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86/">
                        HashSet工作原理
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # HashSet 工作原理

HashSet 是 Java 中的一种集合类，它使用哈希表（Hash Table）来存储元素。在哈希表中，元素的存储位置是根据它们的哈希码（Hash Code）来确定的



hashCode () 方法

每个 Ja...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Sat Aug 05 2023 16:26:51 GMT-0800">
                
                    2023-08-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E9%9D%A2%E8%AF%95%E9%A2%98/">面试题</a>&nbsp;
                        </li>
                    
                        <li>
                            | 
                            <a href="/tags/Hash/">Hash</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/08/06/HashSet%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86/">阅读全文<span class="seo-reader-text">HashSet工作原理</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/19/Java%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/">
                        Java最佳实践
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 最佳实践
# 初始化 Gradle 工程，引入单元测试
# 软件运行环境：

语言：Java17

最新的 LTS 版本
一些新的语言特性：

var 关键字来声明变量，Java 编译器可以在编译期间就去通过类型推断来判断出类型
record 类...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Sun Jun 18 2023 20:41:10 GMT-0800">
                
                    2023-06-18
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/Java/">Java</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/Java-%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/">Java 最佳实践</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/19/Java%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/">阅读全文<span class="seo-reader-text">Java最佳实践</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/06/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">
                        设计模式
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 1，设计模式
# 1.1 软件设计模式的产生背景
&quot;设计模式&quot; 最初并不是出现在软件设计中，而是被用于建筑领域的设计中。
1977 年美国著名建筑大师、加利福尼亚大学伯克利分校环境结构中心主任 克里斯托夫·亚历山大（Chris...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Mon Jun 05 2023 17:12:30 GMT-0800">
                
                    2023-06-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/06/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">阅读全文<span class="seo-reader-text">设计模式</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/06/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95/">
                        排序算法
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 排序算法
# 冒泡排序
# 基本介绍

冒泡排序的基本思想是，通过对待排序序列从前向后（从下标较小的元素开始），依次比较相邻元素的值，若发现逆序则交换，使值较大的元素逐渐从前向后，就像水底下的气泡一样逐渐向上冒

# 代码
12345678910...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Mon Jun 05 2023 17:11:41 GMT-0800">
                
                    2023-06-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E7%AE%97%E6%B3%95/">算法</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95/">排序算法</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/06/%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95/">阅读全文<span class="seo-reader-text">排序算法</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/06/%E9%A2%86%E5%9F%9F%E9%A9%B1%E5%8A%A8%E8%AE%BE%E8%AE%A1/">
                        领域驱动设计
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 领域驱动设计
# 大型系统是如何 &quot;变老&quot; 的
# 面临的问题
当一个项目使用过长，他的运行效率低、代码乱，需要重构的时候，需要面临一些问题

沟通难

产品提出一个问题，开发却要很久


开发难

代码膨胀，对于大型软件，一...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Mon Jun 05 2023 17:10:51 GMT-0800">
                
                    2023-06-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E5%BE%AE%E6%9C%8D%E5%8A%A1/">微服务</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E9%A2%86%E5%9F%9F%E9%A9%B1%E5%8A%A8%E8%AE%BE%E8%AE%A1/">领域驱动设计</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/06/%E9%A2%86%E5%9F%9F%E9%A9%B1%E5%8A%A8%E8%AE%BE%E8%AE%A1/">阅读全文<span class="seo-reader-text">领域驱动设计</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/06/%E6%8E%A5%E5%8F%A3%E5%B9%82%E7%AD%89%E6%80%A7/">
                        接口幂等性
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 接口幂等性
# 什么是幂等性
接口幂等性就是用户对于同一操作发起的一次请求或者多次请求的结果是一致的，不会因为多次点击而产生副作用；比如说支付场景，用户购买了商品支付成功，但是返回结果的时候网络异常，此时钱已经扣了，用户再次点击按钮，此时会进行二...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Mon Jun 05 2023 17:09:49 GMT-0800">
                
                    2023-06-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E5%BE%AE%E6%9C%8D%E5%8A%A1/">微服务</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E6%8E%A5%E5%8F%A3%E5%B9%82%E7%AD%89%E6%80%A7/">接口幂等性</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/06/%E6%8E%A5%E5%8F%A3%E5%B9%82%E7%AD%89%E6%80%A7/">阅读全文<span class="seo-reader-text">接口幂等性</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
            <li class="home-article-item">

                

                

                <h3 class="home-article-title">
                    <a href="/2023/06/06/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/">
                        分布式事务
                    </a>
                </h3>

                <div class="home-article-content markdown-body">
                    
                        # 分布式事务
# 基础理论
在讲解具体方案之前，我们有必要了解一些分布式事务所涉及到的基础理论知识。
# 事务
事务是活动轨迹，数据库事务就是那些小轨迹连接的不可分割的大轨迹
事务是应用程序中一系列严密的操作，所有操作必须成功完成，否则在每个操作中...
                    
                </div>

                <div class="home-article-meta-info-container">
    <div class="home-article-meta-info">
        <span><i class="fa-solid fa-calendars"></i>&nbsp;
            <span class="home-article-date" data-date="Mon Jun 05 2023 17:08:50 GMT-0800">
                
                    2023-06-05
                
            </span>
        </span>
        
            <span class="home-article-category"><i class="fa-solid fa-folders"></i></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/categories/%E4%BA%8B%E5%8A%A1/">事务</a>&nbsp;
                        </li>
                    
                    
                </ul>
            </span>
        
        
            <span class="home-article-tag">
                <i class="fa-solid fa-tags"></i>&nbsp;
                <ul>
                    
                        <li>
                            
                            <a href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/">分布式事务</a>&nbsp;
                        </li>
                    
                </ul>
            </span>
        
    </div>

    <a href="/2023/06/06/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/">阅读全文<span class="seo-reader-text">分布式事务</span>&nbsp;<i class="fa-solid fa-angle-right"></i></a>
</div>

            </li>
        
    </ul>

    <div class="home-paginator">
        <div class="paginator">
    <span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="extend next" rel="next" href="/page/2/"><i class="fa-regular fa-angle-right"></i></a>
</div>

    </div>
</div>

                

            </div>
            
            

        </div>

        <div class="main-content-footer">
            <footer class="footer">
    <div class="info-container">
        <div class="copyright-info">
            &copy;
            
              <span>2022</span>
              -
            
            2023&nbsp;&nbsp;<i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 0.5s; color: #f54545"></i>&nbsp;&nbsp;<a href="/">meteor</a>
        </div>
        
            <script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            <div class="website-count info-item">
                
                    <span id="busuanzi_container_site_uv" class="busuanzi_container_site_uv">
                        访问人数&nbsp;<span id="busuanzi_value_site_uv" class="busuanzi_value_site_uv"></span>
                    </span>
                
                
                    <span id="busuanzi_container_site_pv" class="busuanzi_container_site_pv">
                        总访问量&nbsp;<span id="busuanzi_value_site_pv" class="busuanzi_value_site_pv"></span>
                    </span>
                
            </div>
        
        <div class="theme-info info-item">
            <span class="powered-by-container">由 <?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" id="圖層_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1rem" height="1rem" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><path fill="#0E83CD" d="M256.4,25.8l-200,115.5L56,371.5l199.6,114.7l200-115.5l0.4-230.2L256.4,25.8z M349,354.6l-18.4,10.7l-18.6-11V275H200v79.6l-18.4,10.7l-18.6-11v-197l18.5-10.6l18.5,10.8V237h112v-79.6l18.5-10.6l18.5,10.8V354.6z"/></svg><a target="_blank" href="https://hexo.io">Hexo</a> 驱动</span>
                <br>
            <span class="theme-version-container">主题&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v2.1.4</a>
        </div>
        
            <div class="icp-info info-item"><a target="_blank" rel="nofollow" href="
                
                    beian.miit.gov.cn
                
                ">冀ICP备20010108号</a></div>
        
        
        
            <div id="start_div" style="display:none">
                2022/8/17 11:45:14
            </div>
            <div>
                博客已运行 <span class="odometer" id="runtime_days" ></span> 天 <span class="odometer" id="runtime_hours"></span> 小时 <span class="odometer" id="runtime_minutes"></span> 分钟 <span class="odometer" id="runtime_seconds"></span> 秒
            </div>
        
        
        
            <script async data-pjax>
                try {
                    function odometer_init() {
                    const elements = document.querySelectorAll('.odometer');
                    elements.forEach(el => {
                        new Odometer({
                            el,
                            format: '( ddd).dd',
                            duration: 200
                        });
                    });
                    }
                    odometer_init();
                } catch (error) {}
            </script>
        
        
        
    </div>  
</footer>
        </div>
    </div>

    

    <div class="right-side-tools-container">
        <div class="side-tools-container">
    <ul class="hidden-tools-list">
        <li class="right-bottom-tools tool-font-adjust-plus flex-center">
            <i class="fa-regular fa-magnifying-glass-plus"></i>
        </li>

        <li class="right-bottom-tools tool-font-adjust-minus flex-center">
            <i class="fa-regular fa-magnifying-glass-minus"></i>
        </li>

        <li class="right-bottom-tools tool-expand-width flex-center">
            <i class="fa-regular fa-expand"></i>
        </li>

        <li class="right-bottom-tools tool-dark-light-toggle flex-center">
            <i class="fa-regular fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="right-bottom-tools tool-scroll-to-bottom flex-center">
            <i class="fa-regular fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="visible-tools-list">
        <li class="right-bottom-tools toggle-tools-list flex-center">
            <i class="fa-regular fa-cog fa-spin"></i>
        </li>
        
            <li class="right-bottom-tools tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
        
    </ul>
</div>

    </div>

    <div class="image-viewer-container">
    <img src="">
</div>


    


</main>





<script src="/js/utils.js"></script>

<script src="/js/main.js"></script>

<script src="/js/layouts/navbarShrink.js"></script>

<script src="/js/tools/scrollTopBottom.js"></script>

<script src="/js/tools/lightDarkSwitch.js"></script>





    
<script src="/js/tools/codeBlock.js"></script>




    
<script src="/js/layouts/lazyload.js"></script>




    
<script src="/js/tools/runtime.js"></script>

    
<script src="/js/layouts/odometer.min.js"></script>

    
<link rel="stylesheet" href="/assets/odometer-theme-minimal.css">




  
<script src="/js/libs/Typed.min.js"></script>

  
<script src="/js/plugins/typed.js"></script>







<div class="post-scripts pjax">
    
</div>


    
<script src="/js/libs/pjax.min.js"></script>

<script>
    window.addEventListener('DOMContentLoaded', () => {
        window.pjax = new Pjax({
            selectors: [
                'head title',
                '.page-container',
                '.pjax',
            ],
            history: true,
            debug: false,
            cacheBust: false,
            timeout: 0,
            analytics: false,
            currentUrlFullReload: false,
            scrollRestoration: false,
            // scrollTo: true,
        });

        document.addEventListener('pjax:send', () => {
            Global.utils.pjaxProgressBarStart();
        });

        document.addEventListener('pjax:complete', () => {
            Global.utils.pjaxProgressBarEnd();
            window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
            Global.refresh();
        });
    });
</script>




</body>
</html>
